<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22756" systemVersion="23G93" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
    <entity name="HealthDataEntry" representedClassName="HealthDataEntry" syncable="YES" codeGenerationType="class">
        <attribute name="bloodPressureDiastolic" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="bloodPressureSystolic" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="bodyMass" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="dateRecorded" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="heartRate" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="height" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
        <attribute name="stepCount" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
    </entity>
    <entity name="LifePrediction" representedClassName="LifePrediction" syncable="YES" codeGenerationType="class">
        <attribute name="ageAtPrediction" attributeType="Double" usesScalarValueType="YES"/>
        <attribute name="confidenceScore" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
        <attribute name="dateCreated" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
        <attribute name="predictedLifespan" attributeType="Double" usesScalarValueType="YES"/>
        <attribute name="remainingYears" attributeType="Double" usesScalarValueType="YES"/>
        <relationship name="surveyResponse" optional="YES" maxCount="1" deletionRule="Cascade" destinationEntity="SurveyResponse" inverseName="lifePrediction" inverseEntity="SurveyResponse"/>
    </entity>
    <entity name="SurveyResponse" representedClassName="SurveyResponse" syncable="YES" codeGenerationType="class">
        <attribute name="alcoholConsumption" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
        <attribute name="dateCompleted" attributeType="Date" usesScalarValueType="NO"/>
        <attribute name="exerciseFrequency" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
        <attribute name="familyHistory" attributeType="String"/>
        <attribute name="id" attributeType="UUID" usesScalarValueType="NO"/>
        <attribute name="smokingStatus" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
        <attribute name="stressLevel" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/>
        <relationship name="lifePrediction" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="LifePrediction" inverseName="surveyResponse" inverseEntity="LifePrediction"/>
    </entity>
</model>